/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author Ekaterina
 */

@Entity
@Table (name = "education", catalog = "otdelkadrov", schema = "")
public class Education implements Serializable {
    
    @Column(name = "institution_name")
private String institution_name;
    
        @Column(name = "diplom_date")
     @Temporal(javax.persistence.TemporalType.TIMESTAMP)
private Date diplom_date;
    
    @Column(name = "end_date")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
private Date end_date;
    
    @Column(name = "diplom_nomer")
private int diplom_nomer;
    
    @Column(name = "diplom_seria")
private String diplom_seria;
    
    @Column(name = "spec_name")
private String spec_name;
    
     @Column(name = "kvalification")
private String kvalification;
    
    @Column(name = "forma")
private String forma;
  
   
    @Column(name = "stepen")
private String stepen;
    
    @Column(name = "type")
private String type;
    
     @Id
@GeneratedValue
@Column (name="id")
private Integer id = null;
    
    @ManyToOne
    @JoinColumn(name = "worker",referencedColumnName = "id")
    private Worker worker;

    public String getInstitution_name() {
        return institution_name;
    }

    public Date getEnd_date() {
        return end_date;
    }

    public int getDiplom_nomer() {
        return diplom_nomer;
    }

    public String getDiplom_seria() {
        return diplom_seria;
    }

    public String getSpec_name() {
        return spec_name;
    }

     public String getKvalif() {
        return kvalification;
    }
    
    public String getForma() {
        return forma;
    }

    public Date getDiplom_date() {
        return diplom_date;
    }

    public String getStepen() {
        return stepen;
    }
    
     public String getType() {
        return type;
    }

    public Integer getId() {
        return id;
    }

    public Worker getWorker() {
        return worker;
    }

    public void setInstitution_name(String institution_name) {
        this.institution_name = institution_name;
    }

    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }

    public void setDiplom_nomer(int diplom_nomer) {
        this.diplom_nomer = diplom_nomer;
    }

    public void setDiplom_seria(String diplom_seria) {
        this.diplom_seria = diplom_seria;
    }

    public void setSpec_name(String spec_name) {
        this.spec_name = spec_name;
    }
    
    public void setKvalif(String kvalification) {
        this.kvalification = kvalification;
    }

    public void setForma(String forma) {
        this.forma = forma;
    }
   
    public void setDiplom_date(Date diplom_date) {
        this.diplom_date = diplom_date;
    }

  
    public void setStepen(String stepen) {
        this.stepen = stepen;
    }
    
     public void setType(String type) {
        this.type = type;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setWorker(Worker worker) {
        this.worker = worker;
    }
    
    
}
